package com.guoteng.androidlearn;

import android.os.Bundle;
import android.view.View;
import android.widget.RadioButton;

public class ButtonActivity extends BaseActivity {

    private boolean check;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_button);

        check = false;

        RadioButton radioButton = (RadioButton) findViewById(R.id.radioButton);

        radioButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

//                RadioButton radioButton = (RadioButton) v;
//
//                radioButton.setChecked(!check);
//                check = !check;
//
//                Toast.makeText(getApplicationContext(), "~~~", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
